<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>vue初体验</title>
</head>

<body>
  <!-- 创建一个容器 -->
  <div id="app">
    <div v-if="sex=='男'">男</div>
    <div v-else>女</div>

    <!-- 根据成绩划分等级 -->
    <div v-if="score>=90">优秀</div>
    <div v-else-if="score>=80">良好</div>
    <div v-else-if="score>=70">及格</div>
    <div v-else>不及格</div>
  </div>

  <script src="./js/vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        sex: '女',
        score: 30
      }
    })
  </script>
</body>

</html>